<%@   page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%-- <%@   taglib uri="http://ckeditor.com" prefix="ckeditor"%> --%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
<! DOCTYPE   HTML  PUBLIC   "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>首页</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv = "expires" content = "0">
<script type="text/javascript" src="/company/ckeditor/ckeditor.js?t=B37D54V"></script>
</head>
<body>
	<form action="getContent" method="get">
		<textarea cols="80" id="editor1" name="editor1" rows="10"></textarea>
		<input type="button" value="保存" onclick="saves();" />
	</form>
<!-- 	<ckeditor:replace replace="editor1" basePath="/company/ckeditor/" /> -->
</body>

<script>
var editor = CKEDITOR.replace('editor1'); //参数‘content’是textarea元素的name属性值，而非id属性值

function saves(){

var data= CKEDITOR.instances.content.getData();
alert(data);
}

</script>
</html>
